#@layout()
#define main()
<h1>书架管理&nbsp;&nbsp;
    <a href="/bookshelf/add">创建书架</a>
</h1>
#include("_search.html")
<div class="table_box">
    <table class="list">
        <tbody>
        <tr>
            <th width="4%" style="text-align:center;">书架ID</th>
            <th width="35%" style="text-align:center;">书架号码</th>
            <th width="35%" style="text-align:center;">操作</th>
        </tr>

        #for(x : bookShelfPage.getList())
        <tr>
            <td style="text-align:center;">#(x.bookshelfid)</td>
            <td style="text-align:center;">#(x.bookshelfno)</td>
            <td style="text-align:center;">
                &nbsp;&nbsp;<a href="/bookshelf/delete/#(x.bookshelfid)">删除</a>
                &nbsp;&nbsp;<a href="/bookshelf/edit/#(x.bookshelfid)">修改</a>
            </td>
        </tr>
        #end
        </tbody>
    </table>
    #@paginate(bookShelfPage.pageNumber, bookShelfPage.totalPage, "/bookshelf/")
</div>
#end